package service;

import java.util.List;

import dao.*;
import dao.hero_dao;
import entity.equip;
import entity.hex;
import entity.hero;
import entity.trammel;

public class search_service {
	private hex_dao d_hex=new hex_dao();
	private guide_service gd_service=new guide_service();
	public List<hero> search_hero(String name) {
		List<hero> res =gd_service.get_all_hero("select * from hero where hero_name=\""+name+"\"");
		return res;
	}

	public List<equip> search_equip(String name) {
		List<equip> res =gd_service.get_all_equip("select * from equip where equip_name=\""+name+"\"");
		return res;
	}

	public List<hex> search_hex(String name) {
		List<hex> res =gd_service.get_all_hex("select * from hex where hex_name=\""+name+"\"");
		return res;
	}

	public List<trammel> search_trammel(String name) {
		List<trammel> res =gd_service.get_all_trammel("select * from trammel where trammel_name=\""+name+"\"");
		return res;
	}

}
